package org.example.controller.rep;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @Author tql
 * @Desc 优惠劵订单详情 响应实体
 * @Date 2024/2/27 16:12
 * @Version 1.0
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value="福利列表实体",description = "福利列表实体类描述")
public class BonusListRep {

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "奖励信息")
    private String bonus;

    @ApiModelProperty(value = "类型1站内跳转,2链接")
    private Integer type;

    @ApiModelProperty(value = "奖励有效期")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime validityDate;

    @ApiModelProperty(value = "奖励类别")
    private String bonusCate;
}
